<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ul id="item">
        <li v-for="(item,index) in arr" :title="item">{{item}}</li>
        <!-- 生成arr里个数的li -->
        <!-- item为对应的值 -->
    </ul>
    <!-- 导入开发版本的vue.js -->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        var item = new Vue({
            el: "#item",
            data: {
                arr: [1, 2, 3, 4, 5, 321]
            }
        })
    </script>
</body>

</html>